#!/usr/local/bin/python2.5

from pottononline.map.models import Marker
from pottononline.map.utils import slugify

for m in Marker.objects.all():
    if m.slug == "":
        m.slug = slugify(m, "name", "slug")
        print "Added slug %s to %s" % (m.slug, m.name)
        m.save()


